<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= !empty($title_for_layout) ? $title_for_layout : 'GDG Polska' ?></title>
        <link rel="dns-prefetch" href="//ajax.googleapis.com" />
        <link rel="dns-prefetch" href="//fonts.googleapis.com" />
<!--        <link rel="sitemap" type="application/xml" title="Sitemap"
              href="/sitemap.xml" />-->
        <?php echo $this->Html->meta('description', !empty($description_for_layout) ? $description_for_layout : 'Witamy na stronie głównej Google Developers Group (GDG) w Polsce. Zapraszamy do wzięcia udziału w naszych spotkaniach poświęconych technologii... nie tylko od Google :)'); ?>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">

        <meta name="application-name" content="GDG Polska" />
        <meta name="msapplication-tooltip"
              content="Google Developers Group w Polsce." />
        <!-- <meta name="msapplication-starturl" content="http://www.example.com/index.html?pinned=true" /> -->
        
        <?php echo $this->Html->meta('og:title', !empty($title_for_layout) ? $title_for_layout : 'GDG Polska'); ?>
        <?php echo $this->Html->meta('og:description', !empty($description_for_layout) ? $description_for_layout : 'Witamy na stronie głównej Google Developers Group (GDG) w Polsce. Zapraszamy do wzięcia udziału w naszych spotkaniach poświęconych technologii... nie tylko od Google :)'); ?>
        <?php echo $this->Html->meta('og:image', '/static/gdglogo/GDGPoland.png'); ?>
        
        <script type="text/javascript">
            (function(){
                // if firefox 3.5+, hide content till load (or 3 seconds) to prevent FOUT
                var d = document, e = d.documentElement, s = d.createElement('style');
                if (e.style.MozTransform === ''){ // gecko 1.9.1 inference
                    s.textContent = 'body{visibility:hidden}';
                    var r = document.getElementsByTagName('script')[0];
                    r.parentNode.insertBefore(s, r);
                    function f(){ s.parentNode && s.parentNode.removeChild(s);}
                    addEventListener('load',f,false);
                    setTimeout(f,3000); 
                }
            })();
        </script>
        <?php
        echo $this->fetch('meta');
        echo $this->Html->meta('icon');
        echo $this->Html->css(array('style', 'smoothness/jquery-ui-1.8.21'));
        echo $this->fetch('css');

        echo $this->Html->script(array("libs/modernizr-2.6.1cb.min.js"));
        echo $this->fetch('script-top');
        ?>   
    </head>
    <body>
        <header id="topbar">
            <?=$this->Element('header') ?>
        </header>
        <div id="main_content" role="main">
            <?php echo $this->Session->flash(); ?>
            <?php echo $this->fetch('content'); ?>
        </div>
        <div id="sidebar">
            <?=$this->Element('sidebar') ?>
        </div>
        <div class="clearfix"></div>
        <footer>
		&copy; GDG Poland.
		<a href="https://plus.google.com/105194415052752125887" rel="publisher">Google+</a>
	</footer>
        <script>
            var _gaq=[['_setAccount','UA-32713793-1'],['_trackPageview']];
            (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
            g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
            s.parentNode.insertBefore(g,s)}(document,'script'));
        </script>
        <script
        src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="/js/libs/jquery-1.7.2.min.js"><\/script>')</script>
        <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
        <script>window.jQuery.ui || document.write('<script src="/js/libs/jquery-ui-1.8.21.min.js">\x3C/script>');</script>
        <?php
        echo $this->Html->script(array('plugins', 'script'));
        echo $this->fetch('scriptBottom');
        ?>
        <script type="text/javascript">
            window.___gcfg = {lang: 'pl'};
            (function() 
            {var po = document.createElement("script");
                po.type = "text/javascript"; 
                po.async = true;
                po.src = "https://apis.google.com/js/plusone.js";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(po, s);
            })();</script>
        <!--scripts-->
        <div id="fb-root"></div>
        <script>
            (function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); 
            js.id = id;
            js.type = 'text/javascript';
            js.async = true;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=197188877060220";
            fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        </script>
        
        <?php echo $this->element('sql_dump'); ?>
    </body>
</html>
